﻿
using System.Data.SqlClient;

namespace DeVierKoeden.Dynamicweb.CreateSite.DataAnonymization
{
  internal class SimpleAnonymizerSettings :IAnonymizeSettings
  {
    public string SqlServerInstance { get; set; }
    public string DatabaseName { get; set; }
    public ReplacementBehavior AnonymizationMethod { get; set; }
    public string AnonymizationSuffix { get; set; }
    public string BuildConnectionString()
    {
      var builder = new SqlConnectionStringBuilder() { DataSource = SqlServerInstance, InitialCatalog = DatabaseName, IntegratedSecurity = true };
      return builder.ToString();
    }
  }
}
